CC = g++
TARGET = test
SRC = $(wildcard *.cc)
OBJ = $(patsubst %.cc,%.o,$(SRC))
FLAG = -std=c++11 -lpthread

$(TARGET):$(OBJ)
	$(CC) -o $@ $^ $(FLAG)

.PHONY:clean
clean: 
	rm -rf $(OBJ) $(TARGET)
